Jump to content

Weird collisions


MrIslomaniac
 Share

Recommended Posts

Good Evening Ladies and Gentlemen

 

I just faced another problem:I load a model and when i collide with it, I go through it and then everything gets weird, watch it for yourself =)

 

 

This is the code I am using:

The model:

TBody Hummer = LoadModel("abstract::hummer.gmf",0);
PositionEntity(Hummer,Vec3(5,0,0));
EntityType(Hummer,2);
SetBodyMass(Hummer,100);

and the controller:

TController LocalPlayer=CreateController(1.8,0.45,0,50);
EntityType(LocalPlayer,1);
SetBodyMass(LocalPlayer,80);
SetBodyBuoyancyMode(LocalPlayer, 1);

HELP :P

Link to comment
Share on other sites

I had the same problem, and the player controller went inside objects and then was thrown out.

I found some fix, but can't remember right now what it was. Trying to remember now... :P

 

EDIT: Ah yes, now I remember. I made a pivot child of the controller, and that messed everything up. So now I don't child anything, but only move and rotate "childs". A similar problem happened earlier also with animated models, and the fix was the same.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...