Versions in this module Expand all Collapse all v1 v1.0.0 Apr 26, 2020 Changes in this version + func CreateB2Vec2Array(va []Vector) []box2d.B2Vec2 + type Body struct + Active bool + AllowSleep bool + Angle float64 + AngularDamping float64 + AngularVelocity float64 + Awake bool + Bullet bool + CustomProperties CustomProperties + FixedRotation bool + Fixtures []Fixture + GravityScale float64 + LinearDamping float64 + LinearVelocity Vector + MassData MassData + Name string + Position Vector + Type BodyType + func (b Body) CreateB2BodyDef() *box2d.B2BodyDef + type BodyType int + const DynamicType + const KinematicType + const StaticType + func (bt BodyType) CreateB2BodyType() uint8 + type ChainShapeProperties struct + HasNextVertex bool + HasPrevVertex bool + NextVertex Vector + PrevVertex Vector + Vertices []Vector + type CircleShapeProperties struct + Position Vector + Radius float64 + type Color struct + Alpha int + Blue int + Green int + Red int + type CustomProperties map[string]interface + func (cp CustomProperties) GetBool(name string) (bool, bool) + func (cp CustomProperties) GetBoolDefault(name string, defaultValue bool) bool + func (cp CustomProperties) GetColor(name string) (Color, bool) + func (cp CustomProperties) GetColorDefault(name string, defaultValue Color) Color + func (cp CustomProperties) GetFloat(name string) (float64, bool) + func (cp CustomProperties) GetFloatDefault(name string, defaultValue float64) float64 + func (cp CustomProperties) GetInt(name string) (int, bool) + func (cp CustomProperties) GetIntDefault(name string, defaultValue int) int + func (cp CustomProperties) GetString(name string) (string, bool) + func (cp CustomProperties) GetStringDefault(name string, defaultValue string) string + func (cp CustomProperties) GetVector(name string) (Vector, bool) + func (cp CustomProperties) GetVectorDefault(name string, defaultValue Vector) Vector + type CustomProperty struct + Name string + Type CustomPropertyType + Value interface{} + type CustomPropertyType int + const BoolType + const ColorType + const FloatType + const IntType + const StringType + const VectorType + type DistanceJointProperties struct + DampingRatio float64 + Frequency float64 + Length float64 + type Filter struct + CategoryBits int + GroupIndex int + MaskBits int + func (f Filter) CreateB2Filter() box2d.B2Filter + type Fixture struct + CustomProperties CustomProperties + Density float64 + Filter Filter + Friction float64 + IsSensor bool + Name string + Restitution float64 + Shape Shape + func (f Fixture) CreateB2FixtureDef() *box2d.B2FixtureDef + type FrictionJointProperties struct + MaxForce float64 + MaxTorque float64 + type Image struct + Angle float64 + AspectScale float64 + Body int + Center Vector + ColorTint Color + Corners []Vector + CustomProperties CustomProperties + File string + Filter ImageFilter + Flip bool + GlDrawElements []int + GlTexCoordPointer []int + GlVertexPointer []float64 + Name string + Opacity float64 + RenderOrder float64 + Scale float64 + type ImageFilter int + const LinearFilter + const NearestFilter + type Joint struct + BodyA int + BodyB int + CollideConnected bool + CustomProperties CustomProperties + LocalAnchorA Vector + LocalAnchorB Vector + Name string + Properties interface{} + Type JointType + func (j Joint) CreateB2JointDef(bodies []*box2d.B2Body) box2d.B2JointDefInterface + type JointType int + const DistanceType + const FrictionType + const MotorType + const PrismaticType + const RevoluteType + const RopeType + const WeldType + const WheelType + type MassData struct + Center Vector + Inertia float64 + Mass float64 + type MotorJointProperties struct + AngularOffset float64 + CorrectionFactor float64 + LinearOffset Vector + MaxForce float64 + MaxTorque float64 + type Object struct + Angle float64 + CustomProperties CustomProperties + Flip bool + Name string + Position Vector + Scale float64 + type PolygonShapeProperties struct + Vertices []Vector + type PrismaticJointProperties struct + EnableLimit bool + EnableMotor bool + LocalAxisA Vector + LowerTranslation float64 + MaxMotorForce float64 + MotorSpeed float64 + ReferenceAngle float64 + UpperTranslation float64 + type RevoluteJointProperties struct + EnableLimit bool + EnableMotor bool + LowerAngle float64 + MaxMotorTorque float64 + MotorSpeed float64 + ReferenceAngle float64 + UpperAngle float64 + type RopeJointProperties struct + MaxLength float64 + type Scene struct + AllowSleep bool + AutoClearForces bool + Bodies []Body + CollisionBitPlanes []string + ContinuousPhysics bool + CustomProperties CustomProperties + Gravity Vector + Images []Image + Joints []Joint + Objects []Object + PositionIterations int + StepsPerSecond float64 + SubStepping bool + VelocityIterations int + WarmStarting bool + func LoadJSONData(data []byte) Scene + func LoadJSONFile(name string) (Scene, error) + func LoadJSONString(string string) Scene + func (s Scene) CreateB2Bodies(world *box2d.B2World) []*box2d.B2Body + func (s Scene) CreateB2BodiesJoints(world *box2d.B2World) ([]*box2d.B2Body, []*box2d.B2JointInterface) + func (s Scene) CreateB2Joints(world *box2d.B2World, bodies []*box2d.B2Body) []*box2d.B2JointInterface + func (s Scene) CreateB2World() *box2d.B2World + func (s Scene) CreateB2WorldBodiesJoints() (*box2d.B2World, []*box2d.B2Body, []*box2d.B2JointInterface) + type Shape struct + Properties interface{} + Type ShapeType + func (s Shape) CreateB2Shape() box2d.B2ShapeInterface + type ShapeType int + const ChainType + const CircleType + const PolygonType + type Vector struct + X float64 + Y float64 + func (v Vector) CreateB2Vec2() box2d.B2Vec2 + type WeldJointProperties struct + DampingRatio float64 + Frequency float64 + ReferenceAngle float64 + type WheelJointProperties struct + DampingRatio float64 + EnableMotor bool + Frequency float64 + LocalAxisA Vector + MaxMotorTorque float64 + MotorSpeed float64