Body:setMassFromShapes

Body:setMassFromShapes

Removed in LÖVE 0.8.0
This method is not supported in that and later versions.

Sets mass properties from attatched shapes.

If you feel that finding the correct mass properties is tricky, then this function may be able to help you. After creating the needed shapes on the Body, a call to this function will set the mass properties based on those shapes. Remember to call this function after adding the shapes.


Setting the mass properties this way always results in a realistic (or at least good-looking) simulation, so using it is highly recommended.

Function

Synopsis

Body:setMassFromShapes( )

Arguments

None.

Returns

Nothing.

See Also


© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Body:setMassFromShapes

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部