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

commonMain.de.fabmax.kool.physics.Shape.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.physics.geometry.CollisionGeometry

@Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
expect class ShapeHolder

class Shape(
    val geometry: CollisionGeometry,
    val material: Material = Physics.defaultMaterial,
    localPose: Mat4f = Mat4f.IDENTITY,
    val simFilterData: FilterData? = null,
    val queryFilterData: FilterData? = null
) {
    val localPose: Mat4f = Mat4f(localPose)
    internal var holder: ShapeHolder? = null
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy