Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
PoolGameSingle poolgame = new PoolGameSingle();
var cue = poolgame.CueStick;
Body CueStickBody = BodyFactory.Instance.CreateRectangleBody(physicsSimulator, 15, 15,1);
CueStickBody.Position = new Vector2(902, 250);
cue = CueStickBody;
Geom CueStickGeom = GeomFactory.Instance.CreateRectangleGeom(physicsSimulator, CueStickBody, 15, 15, 20);
CueStickGeom.CollisionGroup = 1;

CueStickGeom.RestitutionCoefficient = .8f;
CueStickGeom.FrictionCoefficient = 0;
Posted
Comments
ZurdoDev 11-Nov-14 7:30am    
What is the problem?
Member 10948508 11-Nov-14 9:08am    
The Image does not collide with other images

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900