修正
1 parent f1345be commit fcd13f09b72129b20fe698e7d3ad53dcf34c2b0f
y-ota authored on 25 Oct 2018
Showing 1 changed file
View
4
src/main/java/cactusServer/entities/MovableObject.java
}
 
public void setPosition(Position3D position) {
this.position = position;
((Object3D)(getPlaceable().getBody())).setPosition(position);
if(placeable != null)((Object3D)(getPlaceable().getBody())).setPosition(position);
}
 
public void setVelocity(Velocity3D velocity) {
this.velocity = velocity;
}
 
public void setAngle(Quaternion3D angle) {
this.angle = angle;
((Object3D) getPlaceable().getBody()).apply(angle, false);
if(placeable != null)((Object3D) getPlaceable().getBody()).apply(angle, false);
}
 
public void setAttribute(Attribute attribute) {
this.attribute = attribute;