Jump to content

Physical movement of Entity


photo

Recommended Posts

If an entity has a rigid body and shape, can the following functions of the entity class be used to implement physical motion?

And does the position shift due to physical movement automatically update the latitude and longitude of the entity?

image.png.c37d01f96578cf356928be04a42aa43b.png

 

I want to create a function in the engine that automatically moves the generated entity to the destination, and I want natural movement like physical movement.

Edited by dongju.jeong
Link to comment

Hello!

unfortunately IG does not support work with physics objects. this is due to interpolation limitations and SynckerPlugin peculiarity. 

setVelocity/setAcceleration methods - designed to work with interpolation at low framerate, the host transmits not only the position, but also the direction of the entity's movement. this allows you to significantly reduce the frequency of position updates from the host side.

if you want to simulate physics-based movement without the participation of the host, then you will have to write your own logic for this entity without using IG methods, working directly with engine nodes and body.

Link to comment
×
×
  • Create New...