KF-MMO-Server/Classes/physicsObject.ts

16 lines
379 B
TypeScript
Raw Normal View History

2023-09-15 04:49:31 +08:00
export class physicsObject{
name : string
2023-11-01 10:01:57 +08:00
templateId : number
2023-09-15 04:49:31 +08:00
//array of floats [3]
2023-11-01 10:01:57 +08:00
kinematic : boolean
2023-09-16 14:57:54 +08:00
position : number[] = [0,0,0]
rotation : number[] = [0,0,0]
velocity : number[] = [0,0,0]
angularVelocity : number[] = [0,0,0]
2023-11-01 10:01:57 +08:00
static copyLight(o: physicsObject) {
let pObject = Object.assign({}, o)
return pObject
}
2023-09-15 04:49:31 +08:00
}