指摘箇所を修正
1 parent f5d6b6e commit a27697ce361486154a2562876dea459a9ce0191b
y-ota authored on 23 Oct 2018
Showing 2 changed files
View
4
src/main/java/cactusServer/entities/MovableObject.java
}
 
public void setPosition(Position3D position) {
this.position = position;
((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);
}
 
public void setAttribute(Attribute attribute) {
this.attribute = attribute;
}
 
@JSONHint(ignore = true)
public Object3D getObject() {
return object;
return (Object3D) getPlaceable().getBody();
}
 
public void setObject(Object3D object) {
this.object = object;
View
2
■■■
src/main/java/cactusServer/entities/Player.java
}
 
public void setPosition(Position3D position) {
this.position = position;
((Object3D) getPlaceable().getBody()).setPosition(position);
}
 
public void setAngle(Quaternion3D angle) {
this.angle = angle;
((Object3D) getPlaceable().getBody()).apply(angle, false);
}
 
public void setCameraState(CameraState cameraState) {
this.cameraState = cameraState;