Neil Evans wrote:

> I've created a 3D scene in Max and exported it to a W3D file.  The file
> consists of a set of walls, a floor, a camera(camera01) and a
> sphere(sphere01).  I am trying to make the camera the child of the sphere so
> I can use it for collision detection etc, but can't fathom out how to do it.
> I have tried to do it in Max but it seems to have no effect.  Can anyone
> help please?

I don't have any experience with importing Max models into SW3D, but it
would seem to me that it would be easier to tackle this in lingo. since
every 3D member automatically has a default camera, I don't see why you
would need to create on in Max. likewise the sphere, which can be very
simply created as a primitive.

the syntax for setting a camera as a child of a sphere primitive would look
something like:


--< untested email lingo >--

-- store world ID
pMember = sprite(me.spriteNum).member

-- Define a sphere
mySphere = pMember.newModelResource("mySphere", #sphere)
  
-- Set Sphere Properties
mySphere.radius = 10
mySphere.startAngle = 0
mySphere.endAngle = 360
  
-- Create the Sphere
pSphere = pMember.newModel("pSphere", mySphere)

-- hide it
pSphere.visibility = #none
  
-- store camera ID
pCamera = sprite(me.spriteNum).camera

-- set parent
pCamera.parent = pSphere

--< end untested email lingo >--


regards,

Christian

----------------------------
Christian Wach
[EMAIL PROTECTED]
----------------------------


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to