Select to view content in your preferred language

Moving a rigidbody in the ArcGIS Enviroment

663
2
Jump to solution
11-24-2022 08:30 AM
ChristofferLindellBolin
Occasional Contributor

Hi, I an currently trying to move an entity with a rigidbody in the ArcGIS enviroment, but have been unable to do so. I want to be able to move an entity between an ArcGIS point A and ArcGIS point B with a rigidbody. How would I achieve this?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
ReintJ
by
Occasional Contributor

I solved this with the following steps:

- Remove the rebase component from your ArcGISCamera (only recommended for small local scenes though).

- Add a empty gameobject with an ArcGISLocation component, this object is the parent of all your physics related stuff.

- Put all your Rigidbodies as childs of this object, without the ArcGISLocation component so the transform can be used normally for the physics system.

I hope this helps.

I didn't find a solution with using the rebase component, since the physics system doesn't update according to the world movements. But I guess you can lerp the position (be it the transform, HPTransform or cooridantes) between the positions of A and B.

View solution in original post

2 Replies
ReintJ
by
Occasional Contributor

I solved this with the following steps:

- Remove the rebase component from your ArcGISCamera (only recommended for small local scenes though).

- Add a empty gameobject with an ArcGISLocation component, this object is the parent of all your physics related stuff.

- Put all your Rigidbodies as childs of this object, without the ArcGISLocation component so the transform can be used normally for the physics system.

I hope this helps.

I didn't find a solution with using the rebase component, since the physics system doesn't update according to the world movements. But I guess you can lerp the position (be it the transform, HPTransform or cooridantes) between the positions of A and B.

ChristofferLindellBolin
Occasional Contributor

Great, thanks. I have just been able to get it to work when I removed the Rebase component, took me a while to figure that out.

Ideally for future releases of the plugin, it would be a big bonus though if they could include support for or create an alternative to Rigidbody for the global scene with the ArcGIS rebase component.