Page MenuHomeFeedback Tracker

Scripting command request: Put object into rest state (physics)
Assigned, WishlistPublic

Description

I would like to request a new scripting command that will force object into rest state disabling physics processing, nullifying all speeds and forces applied to object, preferably globally for all clients in multiplayer game. Current enableSimulation stops physics simulation until you enable simulation back which will continue the simulation. Also using disabled simulation is unacceptable with some objects like vehicles and ammo containers because they do not function with disabled simulation.

Example use for this command:
Say you need to spawn 100 vehicles around the map. It will make game load PhysX scene around all 100 vehicles resulting in huge performance drop for good amount of time, even though you as mission designer know that newly spawned vehicles should not collide with anything, yet game will processes the physics. This situation can be solved with said requested command, you could be able to call it right when vehicle was spawned and it would prevent needless calculations and performance drops. The problem goes higher with more objects being needlessly processed at the same time.

Another usage for this command would be to stop physics desynchronization in multiplayer when players see non-local objects flying all over the place: http://feedback.arma3.com/view.php?id=9622 http://www.youtube.com/watch?v=RdDGgKD6Lq8 http://www.youtube.com/watch?v=bLaN6J3MxrA

Details

Legacy ID
3715256968
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Feature Request
Additional Information

I would suggest this scripting command as unary operator with single argument of vehicle that needs to be put into rest state. Suggested syntax and name is:
setRestState <vehicle>

To put object back into moving state you could call <vehicle> setVelocity [0,0,0] on it or when something will collide with it.

Event Timeline

SaMatra edited Steps To Reproduce. (Show Details)Sep 28 2013, 2:53 AM
SaMatra edited Additional Information. (Show Details)
SaMatra set Category to Feature Request.
SaMatra set Reproducibility to N/A.
SaMatra set Severity to None.
SaMatra set Resolution to Open.
SaMatra set Legacy ID to 3715256968.May 7 2016, 4:58 PM