Action:
|
Applies a body transformation to all underlying geometry.
|
|
Filename:
|
kern/kern_scm/ent_scm.cxx
|
|
APIs:
|
api_change_body_trans
|
|
Syntax:
|
(entity:fix-transform body)
|
|
Arg Types:
|
body
|
body
|
|
Returns:
|
entity
|
|
Description:
|
As transformations are applied to a body, the system keeps track of the resulting transformation as part of the body data structure. The fix command applies a body transformation to all of the underlying geometry and replaces the body transformation with NULL (indicating an id entity transformation). This extension returns the input entity.
|
|
|
body specifies the body to be transformed.
|
|
Example:
|
; entity:fix-transform
|
|
; Create a solid block.
|
|
(define block1
|
|
|
(solid:block (position 0 0 0)
|
|
|
(position -25 -15 -10)))
|
|
;; block1
|
|
; Transform the block.
|
|
(define transform (entity:transform block1
|
|
|
(transform:axes (position 0 0 0) (gvector -8 0 0)
|
|
|
(gvector 0 6 0))))
|
|
;; transform
|
|
; Fix the body.
|
|
(define fix (entity:fix-transform block1))
|
|
;; fix
|