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

commonMain.de.fabmax.kool.physics.joints.D6Joint.kt Maven / Gradle / Ivy

There is a newer version: 0.15.1
Show newest version
package de.fabmax.kool.physics.joints

import de.fabmax.kool.math.Mat4f
import de.fabmax.kool.physics.RigidActor

expect fun D6Joint(bodyA: RigidActor, bodyB: RigidActor, frameA: Mat4f, frameB: Mat4f): D6Joint

interface D6Joint : Joint {
    var motionX: D6JointMotion
    var motionY: D6JointMotion
    var motionZ: D6JointMotion

    fun setDistanceLimit(extend: Float, stiffness: Float, damping: Float)
    fun setXLinearLimit(lowerLimit: Float, upperLimit: Float, stiffness: Float, damping: Float)
    fun setYLinearLimit(lowerLimit: Float, upperLimit: Float, stiffness: Float, damping: Float)
    fun setZLinearLimit(lowerLimit: Float, upperLimit: Float, stiffness: Float, damping: Float)
}

enum class D6JointMotion {
    Free,
    Limited,
    Locked
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy