Crystal Space
Welcome, Guest. Please login or register.
October 20, 2017, 12:47:43 am

Login with username, password and session length
Search:     Advanced search
9063 Posts in 2051 Topics by 77378 Members
Latest Member: Dangerse1o
* 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 2136 times)
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!

<event name="pccommandinput_jump1">

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

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

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

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

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


<action id="actid(SetColliderSphere)">


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

Full Member
Posts: 191

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


  it's hard to say with so little code, but it looks like the actor uses the sphere, which was not yet created ?
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 5.38 seconds with 15 queries.