- Joined
- Sep 21, 2017
- Messages
- 462
- Solutions
- 1
- Reaction score
- 237
- Points
- 55
- Favorite Pinball Machine
- Indiana Jones (Williams)
Right now, for named objects where I want to retrieve the "Z" position, I have to get the ObjectInfo's Position. The only way to do this is to use FindObject to get the ObjectInfo, even though I already have a reference to the object.
Maybe this call is very fast, but when I use it inside of something like NewtonPhysicsTick I'm a bit concerned.
@ravarcade is there better generic way this can be done? Either
thanks!
-mark
C#:
AddDebugText "z = " & xBAM.FindObject(xobj.Name).Position.Z
Maybe this call is very fast, but when I use it inside of something like NewtonPhysicsTick I'm a bit concerned.
@ravarcade is there better generic way this can be done? Either
- Add new xBAM.ObjectInfo("objectName") - function can be used to get FP ObjectInfo from object name.
- Have an "Ext" extension for every FP object type which can be used to get the ObjectInfo.
thanks!
-mark