bukary on 12/3/2005 at 22:22
I've been trying to make swinging lanthern with no success. I copied all the properties (Physics and PhysicsAction) from original swinging objects (street signs and some lamps - in Abysmal Gale for example), but it still does not work... I don't know what's wrong.
Can anyone make swinging object?
Krypt on 12/3/2005 at 22:55
The thing that actually makes it swing isn't a property, but a link. Add a PointAttachment link to itself on the object. Look at the links on the swinging objects in gamesys to see what kind of properties it should have.
bukary on 13/3/2005 at 11:48
Thanks for the advice, Krypt! :thumb:
Unfortunately, I was not able to make swinging HangingStreetLamp. :(
I copied all properites of PointAttach link (and Physics) from DOCHangingOilLamp, but my lamp starts swinging like crazy for a few seconds, then stops, then starts swinging again and freezes. :(
What might be the problem? :confused:
ProjectX on 13/3/2005 at 17:35
It might be something to do with point spacing in the link's properties, I know I had to change it to make my chandelier work.
bukary on 13/3/2005 at 17:38
Quote Posted by ProjectX
It might be something to do with point spacing in the link's properties, I know I had to change it to make my chandelier work.
What do you mean by 'point spacing'? Which property is it?
I think I know what the problem is. Unfortunately, I don't know how to solve it.
Here is working swinging lamp:
Inline Image:
http://img228.exs.cx/img228/7673/dziala13cc.jpgAnd here is lamp that does not work:
Inline Image:
http://img202.exs.cx/img202/946/niedziala17hp.jpgOf course, one cannot use the solution showed on the first screenshot. It looks bad and unrealistic.
It seems that lamp will not swing if it is partially
inside other static mesh, or very
close to other static mesh. Why? Is there a way to solve this problem?
Perhaps Krypt knows how to make it work...
ProjectX on 13/3/2005 at 17:47
Errr... Lower the grid size so you can move it closer with greater accuracy, If that still doesn't work then you've probably scaled that support mesh down a bit (the one holding the lamp) and as such the collision has remained the same. I'd change the mesh if I were you.
bukary on 13/3/2005 at 18:09
Quote Posted by ProjectX
Errr... Lower the grid size so you can move it closer with greater accuracy, If that still doesn't work
It does not work.
Quote:
then you've probably scaled that support mesh down a bit (the one holding the lamp) and as such the collision has remained the same. I'd change the mesh if I were you.
I did not scale the support mesh...
ProjectX on 13/3/2005 at 18:51
Hmm... Check for nearby meshes that could be causing this collision error, are there any scaled meshes nearby?
bukary on 13/3/2005 at 19:14
Quote Posted by ProjectX
Hmm... Check for nearby meshes that could be causing this collision error, are there any scaled meshes nearby?
No, there are none... Strange.
Krypt on 13/3/2005 at 20:39
If it thrashes around crazily then the collision hull of your swinging light is probably interpenetrating with the beam you have it placed on. Try moving your light down a few inches so it doesn't collide with the beam. If it creates a noticable gap you may want to put a small mesh at the top with its Movement>Physics set to PHYS_None. This will hide the gap, but still avoid unwanted collision hull interpenetration problems.