16 lines
379 B
TypeScript
16 lines
379 B
TypeScript
export class physicsObject{
|
|
name : string
|
|
templateId : number
|
|
//array of floats [3]
|
|
kinematic : boolean
|
|
position : number[] = [0,0,0]
|
|
rotation : number[] = [0,0,0]
|
|
velocity : number[] = [0,0,0]
|
|
angularVelocity : number[] = [0,0,0]
|
|
|
|
static copyLight(o: physicsObject) {
|
|
let pObject = Object.assign({}, o)
|
|
|
|
return pObject
|
|
}
|
|
} |