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

commonMain.ru.casperix.spine.Constraints.kt Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package ru.casperix.spine

import ru.casperix.math.Transform

interface ConstraintData {
    val name:String
    var order:Int
    var skinRequired:Boolean
}

class IkConstraintData(
    override val name:String,
    override var order:Int,
    override var skinRequired:Boolean,
) : ConstraintData

class PathConstraintData(
    override val name:String,
    override var order:Int,
    override var skinRequired:Boolean,
) : ConstraintData

class PhysicConstraintData(
    override val name:String,
    override var order:Int,
    override var skinRequired:Boolean,
) : ConstraintData

class TransformConstraintData(
    override val name:String,
    override var order:Int,
    override var skinRequired:Boolean,
    val target:BoneData,
    val bones:List,
    val local:Boolean,
    val relative:Boolean,
    val offset: Transform,
    val mix: Transform,
) : ConstraintData




class IkConstraint(val skeleton: Skeleton, val data:IkConstraintData)

class PathConstraint(val skeleton: Skeleton, val data:PathConstraintData)
class PhysicsConstraint(val skeleton: Skeleton, val data:PhysicConstraintData)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy