commonMain.de.fabmax.kool.physics.joints.Joint.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.joints
import de.fabmax.kool.math.Mat4f
import de.fabmax.kool.physics.RigidActor
import de.fabmax.kool.util.Releasable
@Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
expect class JointHolder
interface Joint : Releasable {
val joint: JointHolder
val bodyA: RigidActor
val bodyB: RigidActor
val frameA: Mat4f
val frameB: Mat4f
val isBroken: Boolean
var debugVisualize: Boolean
fun setBreakForce(force: Float, torque: Float)
}