x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Stop Physics for Sensor Calculations

I am trying to create some sensors to place on a vehicle. The issues I'm concerned about is lets say I have 6 sensors. Each sensor takes X amount of time to process the data in the world and produce the data it requires. Thus if the physics simulation is not stopped (or snap shot grabbed), the second sensor to generate data will use a world where X time has passed. How can i set things up so that all sensors can process the same picture of the world for each given time slice?

Product Version: UE 4.18
Tags:
more ▼

asked Jan 28 '18 at 06:50 AM in C++ Programming

avatar image

lufthansa747
3 1 3 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Dont worry about it.

As long as X time is < 0.033 seconds then nobody is going to know except you and me.

The human eye is too slow for anyone to notice that the sensor data is a frame behind.

The game world is smoke and mirrors. We dont have to have a perfect simulation of the physical world. We only have to represent a facsimile of one.

Dont stop the physics sim. Its not continuous, so it stops every frame.

There is a Pre-Physics tick group. A during physics tick group, (for things that can run in parallel to physics). And a post-physics tick group. Between these Pre and Post tick groups is when physics is being simulated. From Post to Pre no physics is being simulated.

If you need to update with more granularity then you need to "time-step" the physics engine. This in conjunction with Custom Physics Update. You can get a callback at every "Time-step" interval during the physics update.

search for AddCustomPhysics,,,

more ▼

answered Feb 24 '18 at 06:09 AM

avatar image

HollingsworthDan
136 2 4 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question