All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.de.fabmax.kool.physics.RigidDynamic.kt Maven / Gradle / Ivy

There is a newer version: 0.15.1
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy