Crystal Space
Welcome, Guest. Please login or register.
October 21, 2014, 04:06:45 am

Login with username, password and session length
Search:     Advanced search
9010 Posts in 2044 Topics by 8766 Members
Latest Member: Msturnocarl03
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Actor and Sphere collision
« previous next »
Pages: [1] Print
Author Topic: Actor and Sphere collision  (Read 1634 times)
Phorem
Newbie
*
Posts: 22


View Profile
« on: October 03, 2008, 04:48:44 am »

Hi, it's been a while since i stopped by but i seem to be having a problem.
First off, i am running Linux 64bit, Nvidia 7600 _Binary Drivers, and using Celstart 1.2.1.

I want to create an entity on the fly by hitting a button. For testing that is the letter 's'.
The problem starts after i create the Sphere. All other objects in the scene can interact with it (as in the physics are normal) but the Actor - a cube mesh - just walks right through it.

If i create the Sphere first when the Scene loads it hangs in the sky and then drops when i hit 's' and my Actor does NOT walk through the mesh - it hits it when i walk into it.

It is only After the Scene has loaded and then i create the Sphere that the problem starts. I just keep walking through it but all other objects are affected by it's mesh - just not me (the Actor or Cube mesh). Here is the code, any help would be great!

Code:
<event name="pccommandinput_jump1">

<createpropclass name="pcmesh" />
<default propclass="pc(pcmesh)" />
<action id="actid(LoadMesh)">
<par id="parid(factoryname)" value="genSphere" />
</action>

<action id="actid(MoveMesh)">
<par id="parid(sector)" value="Scene" />
<par id="parid(position)" value="[3.26927,2.5393,0]" />
</action>

<createpropclass name="pcmechobject" />
<default propclass="pc(pcmechobject)" />

<action id="SetSystem">
<par id="parid(systempcent)" value="sistema"/>
<par id="parid(systempctag)" value="sistema"/>
        </action>

<action id="actid(InitPhys)">
<par id="parid(mass)" value="0.5" />
<par id="parid(density)" value="1" />
<par id="parid(friction)" value="1" />

</action>

<action id="actid(SetColliderSphere)">

</action>

<action id="actid(SetMesh)">
<par id="parid(meshpctag)" value="Sphere" />
</action>

</event>
Logged
Vincent
Full Member
***
Posts: 191


View Profile WWW
« Reply #1 on: October 20, 2008, 07:52:04 pm »

Hello,

  it's hard to say with so little code, but it looks like the actor uses the sphere, which was not yet created ?
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.132 seconds with 15 queries.