commonMain.de.fabmax.kool.physics.RigidDynamic.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kool-physics Show documentation
Show all versions of kool-physics Show documentation
A multiplatform OpenGL / Vulkan graphics engine written in kotlin
package de.fabmax.kool.physics
import de.fabmax.kool.math.Mat4f
import de.fabmax.kool.math.QuatF
import de.fabmax.kool.math.Vec3f
expect fun RigidDynamic(mass: Float = 1f, pose: Mat4f = Mat4f.IDENTITY, isKinematic: Boolean = false): RigidDynamic
interface RigidDynamic : RigidBody {
fun wakeUp()
fun putToSleep()
fun setKinematicTarget(pose: Mat4f)
fun setKinematicTarget(position: Vec3f? = null, rotation: QuatF? = null)
fun setLinearLockFlags(lockLinearX: Boolean, lockLinearY: Boolean, lockLinearZ: Boolean)
fun setAngularLockFlags(lockAngularX: Boolean, lockAngularY: Boolean, lockAngularZ: Boolean)
}