RocketSim v2.1.0
This is a major update for optimization, with many other small improvements.
RocketSim is now around 2x faster in general.
Changelog:
- Faster Custom Broadphase Implemented:
- A new custom broadphase collision system using a fixed-size spatial division grid, written for RocketSim specifically, which massively out-performs the previous stock dynamic bounding volume tree broadphase in BulletPhysics. This deprecates the suspension collision grid, which has been disabled at compile time.
- AABB Caching For All Objects:
- Added AABB caching for all BulletPhysics objects, massively accelerating frequent AABB checks.
- Fixed Suspension Tracing Against Own Hitbox:
- Fixed a silly issue where rays from suspension were often being checked against the hitbox of the car from which they were casting.
- Sphere Orientation Updates Disabled (By Default):
- By default, the ball will not update its orientation (if it is a sphere), because updating the rotation matrix from angular velocity is expensive.
- Added ArenaConfig:
- A new structure for configuring arenas at creation only, seperate from
MutatorConfig
- A new structure for configuring arenas at creation only, seperate from
- Various Other Performance Improvements:
- Various aspects of the simulation, particularly within BulletPhysics, have been heavily optimized and improved.
- Added Useful CarState Fields and Functions:
- A few useful helper functions and state variables have been added to
CarState
;wheelsWithContact
(array),airTime
,HasFlipReset()
,HasFlipOrJump()
, andGotFlipReset()
.
- A few useful helper functions and state variables have been added to
- Added PhysState Base Type:
CarState
andBallState
now both extend from a commonPhysState
struct, with some additional utility functions such asPhysState.GetInvertedY()
.
- All RocketSim types are now within the RocketSim namespace (can be disabled at compile time)
- Fixed GameEventTracker calling null callbacks
- Fixed boost pad update issues in hoops
- Fixed demoed cars updating the suspension collision grid
- Fixed demoed cars adding extra hit force to the ball
- Physics rounding removed (did not help with accuracy and only worsened performance)