| RTI SimCreator & SimObserver Support Home |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| Alicia |
Posted: Mar 4 2011, 08:56 AM
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 45 Member No.: 65 Joined: 25-March 09 |
What's the best way to obtain collision data? Are you only able to detect vehicles in the same lane ahead or behind? Can you detect if you side-swipe ambient traffic?
Thanks, Alicia |
| hstoner |
Posted: Mar 9 2011, 08:07 AM
|
||
|
SimVista Forum Moderator ![]() ![]() ![]() Group: Admin Posts: 97 Member No.: 16 Joined: 5-September 06 |
Hello, You can collect collision data by creating a time sensor in the SimCreator javascript file. Here is some sample code:
This will detect if there is any collision between the Subject vehicle and any moving model (Vehicle), moving character (Actor) and any moving object (StaticObject). |
||
| Alicia |
Posted: Mar 9 2011, 10:18 AM
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 45 Member No.: 65 Joined: 25-March 09 |
Thanks Heather,
I'm assuming the Visuals.displayText commands are printing to the screen and not to the data file? |
| hstoner |
Posted: Mar 11 2011, 08:09 AM
|
|
SimVista Forum Moderator ![]() ![]() ![]() Group: Admin Posts: 97 Member No.: 16 Joined: 5-September 06 |
Correct. You can do anything you want with that information.
|
![]() |
![]() ![]() ![]() |