|
@@ -559,6 +559,40 @@ Properties:
|
|
|
- bool checked
|
|
- bool checked
|
|
|
- IntVector2& checkedOffset
|
|
- IntVector2& checkedOffset
|
|
|
|
|
|
|
|
|
|
+### CollisionBox2D : CollisionShape2D
|
|
|
|
|
+
|
|
|
|
|
+Methods:
|
|
|
|
|
+
|
|
|
|
|
+- void SetSize(const Vector2& size)
|
|
|
|
|
+- void SetSize(float width, float height)
|
|
|
|
|
+- void SetCenter(const Vector2& center)
|
|
|
|
|
+- void SetCenter(float x, float y)
|
|
|
|
|
+- void SetAngle(float angle)
|
|
|
|
|
+- const Vector2& GetSize() const
|
|
|
|
|
+- const Vector2& GetCenter() const
|
|
|
|
|
+- float GetAngle() const
|
|
|
|
|
+
|
|
|
|
|
+Properties:
|
|
|
|
|
+
|
|
|
|
|
+- Vector2& size
|
|
|
|
|
+- Vector2& center
|
|
|
|
|
+- float angle
|
|
|
|
|
+
|
|
|
|
|
+### CollisionCircle2D : CollisionShape2D
|
|
|
|
|
+
|
|
|
|
|
+Methods:
|
|
|
|
|
+
|
|
|
|
|
+- void SetRadius(float radius)
|
|
|
|
|
+- void SetCenter(const Vector2& center)
|
|
|
|
|
+- void SetCenter(float x, float y)
|
|
|
|
|
+- float GetRadius() const
|
|
|
|
|
+- const Vector2& GetCenter() const
|
|
|
|
|
+
|
|
|
|
|
+Properties:
|
|
|
|
|
+
|
|
|
|
|
+- float radius
|
|
|
|
|
+- Vector2& center
|
|
|
|
|
+
|
|
|
### CollisionShape : Component
|
|
### CollisionShape : Component
|
|
|
|
|
|
|
|
Methods:
|
|
Methods:
|
|
@@ -626,16 +660,16 @@ Properties:
|
|
|
Methods:
|
|
Methods:
|
|
|
|
|
|
|
|
- void SetSensor(bool sensor)
|
|
- void SetSensor(bool sensor)
|
|
|
-- void SetCategoryBits(short categoryBits)
|
|
|
|
|
-- void SetMaskBits(short maskBits)
|
|
|
|
|
-- void SetGroupIndex(short groupIndex)
|
|
|
|
|
|
|
+- void SetCategoryBits(int categoryBits)
|
|
|
|
|
+- void SetMaskBits(int maskBits)
|
|
|
|
|
+- void SetGroupIndex(int groupIndex)
|
|
|
- void SetDensity(float density)
|
|
- void SetDensity(float density)
|
|
|
- void SetFriction(float friction)
|
|
- void SetFriction(float friction)
|
|
|
- void SetRestitution(float restitution)
|
|
- void SetRestitution(float restitution)
|
|
|
- bool IsSensor() const
|
|
- bool IsSensor() const
|
|
|
-- short GetCategoryBits() const
|
|
|
|
|
-- short GetMaskBits() const
|
|
|
|
|
-- short GetGroupIndex() const
|
|
|
|
|
|
|
+- int GetCategoryBits() const
|
|
|
|
|
+- int GetMaskBits() const
|
|
|
|
|
+- int GetGroupIndex() const
|
|
|
- float GetDensity() const
|
|
- float GetDensity() const
|
|
|
- float GetFriction() const
|
|
- float GetFriction() const
|
|
|
- float GetRestitution() const
|
|
- float GetRestitution() const
|
|
@@ -646,9 +680,9 @@ Methods:
|
|
|
Properties:
|
|
Properties:
|
|
|
|
|
|
|
|
- bool sensor
|
|
- bool sensor
|
|
|
-- short categoryBits
|
|
|
|
|
-- short maskBits
|
|
|
|
|
-- short groupIndex
|
|
|
|
|
|
|
+- int categoryBits
|
|
|
|
|
+- int maskBits
|
|
|
|
|
+- int groupIndex
|
|
|
- float density
|
|
- float density
|
|
|
- float friction
|
|
- float friction
|
|
|
- float restitution
|
|
- float restitution
|
|
@@ -2827,10 +2861,10 @@ Methods:
|
|
|
- void SetWarmStarting(bool enable)
|
|
- void SetWarmStarting(bool enable)
|
|
|
- void SetContinuousPhysics(bool enable)
|
|
- void SetContinuousPhysics(bool enable)
|
|
|
- void SetSubStepping(bool enable)
|
|
- void SetSubStepping(bool enable)
|
|
|
-- void SetGravity(Vector2 gravity)
|
|
|
|
|
|
|
+- void SetGravity(const Vector2& gravity)
|
|
|
- void SetAutoClearForces(bool enable)
|
|
- void SetAutoClearForces(bool enable)
|
|
|
-- void SetVelocityIterations(unsigned velocityIterations)
|
|
|
|
|
-- void SetPositionIterations(unsigned positionIterations)
|
|
|
|
|
|
|
+- void SetVelocityIterations(int velocityIterations)
|
|
|
|
|
+- void SetPositionIterations(int positionIterations)
|
|
|
- void DrawDebugGeometry()
|
|
- void DrawDebugGeometry()
|
|
|
- bool GetDrawShape() const
|
|
- bool GetDrawShape() const
|
|
|
- bool GetDrawJoint() const
|
|
- bool GetDrawJoint() const
|
|
@@ -2842,9 +2876,9 @@ Methods:
|
|
|
- bool GetContinuousPhysics() const
|
|
- bool GetContinuousPhysics() const
|
|
|
- bool GetSubStepping() const
|
|
- bool GetSubStepping() const
|
|
|
- bool GetAutoClearForces() const
|
|
- bool GetAutoClearForces() const
|
|
|
-- Vector2 GetGravity() const
|
|
|
|
|
-- unsigned GetVelocityIterations() const
|
|
|
|
|
-- unsigned GetPositionIterations() const
|
|
|
|
|
|
|
+- const Vector2& GetGravity() const
|
|
|
|
|
+- int GetVelocityIterations() const
|
|
|
|
|
+- int GetPositionIterations() const
|
|
|
|
|
|
|
|
Properties:
|
|
Properties:
|
|
|
|
|
|
|
@@ -2858,9 +2892,9 @@ Properties:
|
|
|
- bool continuousPhysics
|
|
- bool continuousPhysics
|
|
|
- bool subStepping
|
|
- bool subStepping
|
|
|
- bool autoClearForces
|
|
- bool autoClearForces
|
|
|
-- Vector2 gravity
|
|
|
|
|
-- unsigned velocityIterations
|
|
|
|
|
-- unsigned positionIterations
|
|
|
|
|
|
|
+- Vector2& gravity
|
|
|
|
|
+- int velocityIterations
|
|
|
|
|
+- int positionIterations
|
|
|
|
|
|
|
|
### Plane
|
|
### Plane
|
|
|
|
|
|
|
@@ -3452,7 +3486,7 @@ Methods:
|
|
|
- void SetBodyType(BodyType2D bodyType)
|
|
- void SetBodyType(BodyType2D bodyType)
|
|
|
- void SetMass(float mass)
|
|
- void SetMass(float mass)
|
|
|
- void SetInertia(float inertia)
|
|
- void SetInertia(float inertia)
|
|
|
-- void SetMassCenter(const Vector2& center)
|
|
|
|
|
|
|
+- void SetMassCenter(Vector2 center)
|
|
|
- void SetUseFixtureMass(bool useFixtureMass)
|
|
- void SetUseFixtureMass(bool useFixtureMass)
|
|
|
- void SetLinearDamping(float linearDamping)
|
|
- void SetLinearDamping(float linearDamping)
|
|
|
- void SetAngularDamping(float angularDamping)
|
|
- void SetAngularDamping(float angularDamping)
|
|
@@ -3461,7 +3495,7 @@ Methods:
|
|
|
- void SetBullet(bool bullet)
|
|
- void SetBullet(bool bullet)
|
|
|
- void SetGravityScale(float gravityScale)
|
|
- void SetGravityScale(float gravityScale)
|
|
|
- void SetAwake(bool awake)
|
|
- void SetAwake(bool awake)
|
|
|
-- void SetLinearVelocity(const Vector2& linearVelocity)
|
|
|
|
|
|
|
+- void SetLinearVelocity(Vector2 linearVelocity)
|
|
|
- void SetAngularVelocity(float angularVelocity)
|
|
- void SetAngularVelocity(float angularVelocity)
|
|
|
- void ApplyForce(const Vector2& force, const Vector2& point, bool wake)
|
|
- void ApplyForce(const Vector2& force, const Vector2& point, bool wake)
|
|
|
- void ApplyForceToCenter(const Vector2& force, bool wake)
|
|
- void ApplyForceToCenter(const Vector2& force, bool wake)
|
|
@@ -3481,6 +3515,7 @@ Methods:
|
|
|
- float GetGravityScale() const
|
|
- float GetGravityScale() const
|
|
|
- bool IsAwake() const
|
|
- bool IsAwake() const
|
|
|
- Vector2 GetLinearVelocity() const
|
|
- Vector2 GetLinearVelocity() const
|
|
|
|
|
+- float GetAngularVelocity() const
|
|
|
|
|
|
|
|
Properties:
|
|
Properties:
|
|
|
|
|
|
|
@@ -3497,6 +3532,7 @@ Properties:
|
|
|
- float gravityScale
|
|
- float gravityScale
|
|
|
- bool awake
|
|
- bool awake
|
|
|
- Vector2 linearVelocity
|
|
- Vector2 linearVelocity
|
|
|
|
|
+- float angularVelocity
|
|
|
|
|
|
|
|
### Scene : Node
|
|
### Scene : Node
|
|
|
|
|
|