Action:
|
Returns the transform attached to a body.
|
|
Filename:
|
kern/kern_scm/ent_scm.cxx
|
|
Syntax:
|
(body:get-transform body)
|
|
Arg Types:
|
body
|
body
|
|
Returns:
|
transform | boolean
|
|
Description:
|
If there isn't a transform the command will return a #f.
|
|
|
body specifies the body whose transformation has to be returned.
|
|
Example:
|
; body:get-transform
|
|
; Define and body and get the transform
|
|
; attached to it.
|
|
(define b
|
|
|
(solid:block
|
|
|
(position 0 0 0)
|
|
|
(position 10 10 10)))
|
|
;; b
|
|
(body:get-transform b)
|
|
;; #[transform 761912]
|