PhysicsWorldComponent

class PhysicsWorldComponent(gameEntity: GameEntity, componentInfo: ComponentInfo<PhysicsWorldComponentData> = ComponentInfo(PhysicsWorldComponentData())) : GameEntityDataComponent<PhysicsWorldComponentData>

Constructors

Link copied to clipboard
constructor(gameEntity: GameEntity, componentInfo: ComponentInfo<PhysicsWorldComponentData> = ComponentInfo(PhysicsWorldComponentData()))

Properties

Link copied to clipboard
val actors: Map<RigidActor, RigidActorComponent>
Link copied to clipboard
var characterControllerManager: CharacterControllerManager?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val dataState: MutableStateValue<PhysicsWorldComponentData>
Link copied to clipboard
Link copied to clipboard
var gravity: Vec3f
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var physicsBounds: BoundingBoxF?
Link copied to clipboard
var physicsWorld: PhysicsWorld?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addActor(rigidActorComponent: RigidActorComponent)
Link copied to clipboard
fun addCharController(charController: CharacterControllerComponent): CharacterController?
Link copied to clipboard
open suspend override fun applyComponent()
Link copied to clipboard
Link copied to clipboard
open override fun destroyComponent()
Link copied to clipboard
Link copied to clipboard
open fun onPhysicsUpdate(timeStep: Float)
Link copied to clipboard
open override fun onStart()
Link copied to clipboard
open override fun onUpdate(ev: RenderPass.UpdateEvent)
Link copied to clipboard
fun removeActor(rigidActorComponent: RigidActorComponent)
Link copied to clipboard
Link copied to clipboard
open fun setPersistent(componentData: PhysicsWorldComponentData)
Link copied to clipboard