SimpleBodies

abstract class SimpleBodies(platform: RattlePlatform, physics: PhysicsSpace, val settings: SimpleBodies.Settings = Settings()) : Destroyable

Constructors

Link copied to clipboard
constructor(platform: RattlePlatform, physics: PhysicsSpace, settings: SimpleBodies.Settings = Settings())

Types

Link copied to clipboard
abstract inner class Instance(val collider: ColliderKey, val body: RigidBodyKey, scale: FVec3, position: DIso3)
Link copied to clipboard
@ConfigSerializable
data class Settings(val renderInterpolationDuration: Int = 2, val box: SimpleBodies.Settings.ForGeometry = ForGeometry(), val sphere: SimpleBodies.Settings.ForGeometry = ForGeometry())

Properties

Link copied to clipboard
val count: Int
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun create(position: DIso3, desc: SimpleBodyDesc): ArenaKey
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
operator fun get(key: ArenaKey): SimpleBodies.Instance?
Link copied to clipboard
open fun onPhysicsStep()
Link copied to clipboard
fun remove(key: ArenaKey)
Link copied to clipboard
open fun removeAll()