RubeBody

The RubeBody represents a Box2D body as defined in the JSON file from the RUBE level editor. More...

Import Statement: import VPlay 2.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 with its RubeManager.

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.


contactChanged(Fixture other)

This signal is forwarded from the Fixture::beginContact signal.


endContact(Fixture other)

This signal is forwarded from the Fixture::beginContact signal.


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.


Method Documentation

void applyLinearImpulse(point impulseVector, point worldPoint)

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


Videos

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support