Freeze Object
Description
Causes an object to lose all internal energy, and informs Modalys to stop computing the motion of the object.
(freeze-object ... )
Lisp Syntax and Default Values
The (freeze-object ... ) function can be called using the following Lisp syntax:
(freeze-object object_reference)
Parameters
The (freeze-object ... ) function requires just one argument:
- object_reference: an object to be frozen.
Discussion
This function is often employed in situations where an object is no longer useful (for example a hammer that has finished striking its target). You can save computation time by not calculating the movement of the object, i.e.:
(setq h ...) ; hammer
(setq s ...) ; string
(setq c (make-connection 'strike s h ...))
...
(run 2) ; we are sure the strike is finished by now
(destroy-connection c)
(freeze-object h)
(run 2) ; string continues to vibrate
(freeze-object my-hammer)
(set-info 'access-position my-hammer-mov 0.1)
(set-info 'access-position my-hammer-hit 0.1)
(unfreeze-object my-hammer)
Options
There are no special options for this function.