The RubeBody represents a Box2D body as defined in the JSON file from the RUBE level editor. More...
Import Statement: | import Felgo 4.0 |
Inherits: |
The RubeBody represents a Box2D body as defined in the JSON file from the RUBE level editor. Don't create objects of this component on your own. Instead, let the RubeParser do this.
active : bool |
Alias for ColliderBase::active
angularDamping : real |
Alias for ColliderBase::angularDamping
angularVelocity : real |
Alias for ColliderBase::angularVelocity
body : Body |
Alias for ColliderBase::body
bodyType : int |
Alias for ColliderBase::bodyType
bullet : bool |
Alias for ColliderBase::bullet
collisionTestingOnlyMode : bool |
Alias for ColliderBase::collisionTestingOnlyMode
customProperties : variant |
Contains the custom properties from the RUBE JSON as object. E.g. customProperties["qmlType"] = "RubeBody"
fixedRotation : bool |
Alias for ColliderBase::fixedRotation
fixtures : var |
Alias for ColliderBase::fixtures
force : point |
Alias for ColliderBase::force
gravityScale : real |
Alias for ColliderBase::gravityScale
linearDamping : real |
Alias for ColliderBase::linearDamping
linearVelocity : point |
Alias for ColliderBase::linearVelocity
sleeping : bool |
Alias for ColliderBase::sleeping
sleepingAllowed : bool |
Alias for ColliderBase::sleepingAllowed
torque : real |
Alias for ColliderBase::torque
This signal is forwarded from the Fixture::beginContact signal.
Note: The corresponding handler is onBeginContact
.
contactChanged(Fixture other) |
This signal is forwarded from the Fixture::beginContact signal.
Note: The corresponding handler is onContactChanged
.
endContact(Fixture other) |
This signal is forwarded from the Fixture::beginContact signal.
Note: The corresponding handler is onEndContact
.
initialized() |
The RubeParser emits this signal after the internal initialization is finished. This signal allows you to react to a finished RUBE object. For example, you can search the custom properties for a reset position and move your Object to it.
Note: The corresponding handler is onInitialized
.
This function forwards the call to the ColliderBase::applyLinearImpulse.