NullHandler

open class NullHandler

Default-Handler für Operationen an Actor-Objekten, die an keiner Scene angehängt sind. Führt alle Operationen rein numerisch durch. Gibt Fehler aus, wenn Operationen ausgeführt werden, die nur mit einer Verbindung zu einer Physics World funktionieren können.

Constructors

Link copied to clipboard
constructor(physicsData: PhysicsData)

Properties

Link copied to clipboard
val physicsData: PhysicsData

Functions

Link copied to clipboard
open fun applyForce(force: Vector)
open fun applyForce(force: Vector, globalLocation: Vector)
Link copied to clipboard
open fun applyImpluse(impulse: Vector, globalLocation: Vector)
Link copied to clipboard
open fun applyMountCallbacks(otherHandler: PhysicsHandler)
Link copied to clipboard
open fun applyRotationImpulse(rotationImpulse: Float)
Link copied to clipboard
open fun applyTorque(torque: Float)
Link copied to clipboard
open fun contains(p: Vector): Boolean
Ein Objekt ohne Physik enthält keinen Punkt.
Link copied to clipboard
Link copied to clipboard
open fun getBody(): Body
Link copied to clipboard
open fun getCenter(): Vector
Link copied to clipboard
open fun getDensity(): Float
Link copied to clipboard
open fun getFriction(): Float
Link copied to clipboard
open fun getMass(): Float
Link copied to clipboard
open fun getPosition(): Vector
Link copied to clipboard
open fun getRestitution(): Float
Link copied to clipboard
open fun getRotation(): Float
Link copied to clipboard
open fun getType(): BodyType
Link copied to clipboard
open fun getVelocity(): Vector
Link copied to clipboard
open fun getWorldHandler(): WorldHandler
Link copied to clipboard
open fun isGrounded(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun moveBy(v: Vector)
Link copied to clipboard
open fun resetMovement()
Link copied to clipboard
open fun rotateBy(degree: Float)
Link copied to clipboard
open fun setAngularVelocity(rotationsPerSecond: Float)
Link copied to clipboard
open fun setDensity(density: Float)
Link copied to clipboard
open fun setFriction(friction: Float)
Link copied to clipboard
open fun setRestitution(elasticity: Float)
Link copied to clipboard
open fun setRotation(degree: Float)
Link copied to clipboard
open fun setRotationLocked(locked: Boolean)
Link copied to clipboard
open fun setShapes(shapes: Supplier<List<Shape>>)
Link copied to clipboard
open fun setType(type: BodyType)
Link copied to clipboard
open fun setVelocity(metersPerSecond: Vector)