getPosition work
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
ab1c1c36bf
commit
4ae4f176c5
@ -2135,6 +2135,7 @@ Fix cursor position setting
|
|||||||
Fix many places where entity position being set on vector fetched from getPosition
|
Fix many places where entity position being set on vector fetched from getPosition
|
||||||
- Fixed first person model placement update
|
- Fixed first person model placement update
|
||||||
- Fixed skybox placement update
|
- Fixed skybox placement update
|
||||||
|
Undo getPosition new alloc to lower memory footprint
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ public class EntityUtils {
|
|||||||
* @return The position of the entity
|
* @return The position of the entity
|
||||||
*/
|
*/
|
||||||
public static Vector3d getPosition(Entity e){
|
public static Vector3d getPosition(Entity e){
|
||||||
return new Vector3d((Vector3d)e.getData(EntityDataStrings.DATA_STRING_POSITION));
|
return (Vector3d)e.getData(EntityDataStrings.DATA_STRING_POSITION);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user