Bug fixes, Improvements to Physics Objects and Error Messages
Bug fixes, Improvements to Physics Objects and Error Messages
- "CanTouch" is not longer a valid property for rigid bodies.
- Fixed bug where Point:KeepInCanvas() won't calculate collisions accurately.
- RigidBody.CanvasEdgeTouched event now fires only the moment a rigid body collides with the canvas' edge and not every rendered frame.
- Improved exception handling code.
- Improved error messages for
Engine:Create()
- If an invalid property is specified, the error message will now contain the name of the invalid property you specified for debugging.
- If properties for completely different physics objects are specified, the error message will now contain the name of the invalid property you specified.
- If a must-have property is not specified, the error message will now contain the name of that must-have property.
- RigidBody.Touched event now returns the rigid body's id as well as the collision information (Collision axis, depth, vertex and edge). This can be beneficial for creating visual effects. For example: