[Bugs] #990 LOW: Unpin object
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Thu Jun 25 10:51:01 EDT 2009
#990: Unpin object
----------------------------+-----------------------------------------------
Reporter: erikos | Owner: garycmartin
Type: enhancement | Status: accepted
Priority: Low | Milestone: Unspecified by Release Team
Component: Physics | Version: Unspecified
Severity: Minor | Resolution:
Keywords: | Distribution: Unspecified
Status_field: New |
----------------------------+-----------------------------------------------
Comment(by garycmartin):
Replying to [comment:3 asaf]:
> The method called in tools.py to destroy a body belongs to Box2D. There
is a method to destroy joints as well. The destroy tool calls a method
from elements called get_bodies_at_pos and then calls DestroyBody. We only
need to create a similar method like get_joints_at_pos and then call
DestroyJoint.
Thanks Asaf, I guess the trick will be making sure a single destroy tool
smartly does either operation based on context. i.e. if you are near
enough to a joint/pin/motor remove it, otherwise try to destroy the body.
--
Ticket URL: <http://dev.sugarlabs.org/ticket/990#comment:4>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list