Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

RubeBody

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:

EntityBase

Properties

Signals

Methods

Detailed Description

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.

Property Documentation

active : bool


angularDamping : real


angularVelocity : real


body : Body

Alias for ColliderBase::body


bodyType : int


bullet : bool


collisionTestingOnlyMode : bool


customProperties : variant

Contains the custom properties from the RUBE JSON as object. E.g. customProperties["qmlType"] = "RubeBody"


fixedRotation : bool


fixtures : var


force : point


gravityScale : real


linearDamping : real


linearVelocity : point


sleeping : bool


sleepingAllowed : bool


torque : real


Signal Documentation

beginContact(Fixture other, point contactNormal)

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.


Method Documentation

void applyLinearImpulse(point impulseVector, point worldPoint)

This function forwards the call to the ColliderBase::applyLinearImpulse.


Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded