Game Development Community

Mount a player to a chair

by Jamie62 · in Technical Issues · 01/06/2011 (3:57 pm) · 4 replies

Hi, does anyone know the steps or a good resource to mount a player to a chair. I'm trying to get a player to sit down. I have the sit animation, the chair and I've created the datablocks. How do I make the chair a rigid shape? When I drag it in, its a static shape. Could be where I'm going wrong. I'm missing some code somewhere.

#1
01/06/2011 (4:45 pm)
RigidShape is a kind of pre-Physics physics object. Which probably isn't what you want - but you'd have to write the script yourself, check out rigid shape cs file for an example.

Your model will need a mount# node to mount an object (or player) on to it at a certain position.

Do a search for info on vehicles and how to "mount" players to seats.

Try www.dreambuildrepeat.com/TPSearch if site search is playing up.
#2
01/06/2011 (4:53 pm)
The chair I drag into the space is a static object. I can't find a way to assign a datablock to it. How do I transform the static object to something else? OR can static objects be mounted together?
#3
01/06/2011 (5:02 pm)
You don't 'assign' a datablock to your object when you drag it into the scene; you create a datablock for your new object and drag that into the scene.

When you say "static object" do you mean StaticShape or TSStatic? One is a script accessible object, the other is simply a non-interactive prop with collision.
#4
01/07/2011 (3:47 pm)
I meant TSStatic.

We got it working, thanks for your help. I created a datablock as a StaticShapeData, added the dts model and dragged the scripted object to the scene.